// index.js
Page({
  data:{
    playerList:[{
      position:'东',
      name:'明dsadas'
    }
  ],
  isStart:false
  },
  handleAddPlayer() {
    if(this.data.playerList.length===4){
      return
    }
    console.log(this.data.playerList);
   this.data.playerList.push({
      position:'东',
      name:'测试'
    })
    let playerList =  this.data.playerList
    this.setData({
      playerList:playerList
    })
  },
  handleStart() {
    this.setData({
      isStart:true
    })
  },
  handleReset() {
    this.setData({
      isStart:false,
      playerList:[{
      position:'东',
      name:'明dsadas'
    }]
    })
  }
})
